﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Input;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Messaging;
using GalaSoft.MvvmLight.Command;
using GoldDigger.AppServices;

namespace GoldDigger.ViewModels
{
    class StartViewModel : ViewModelBase
    {
        private MainService _app;

        public StartViewModel(MainService ms)
        {
            _app = ms;
        }

        private ICommand _startDataSelectionCommand;

        public ICommand StartDataSelectionCommand
        {
            get
            {
                return _startDataSelectionCommand ?? (_startDataSelectionCommand = new RelayCommand(SwitchToDataSelectionView));
            }
        }

        public void SwitchToDataSelectionView()
        {
            Messenger.Default.Send(new NotificationMessage<ViewModelBase>(new SelectDatasetViewModel(_app), "ChangeVM"));
        }
    }
}
